#!/bin/bash
c=1

while [ $c -le 20 ]
do
       echo $c;
	 dtnd -c /usr/voyagedtn/dtn.conf -d -o /tmp/dtn.log
	echo  "start";

sleep 1;       
 #while($(pidof dtnd) -eq "")
         #  do 
             echo "killing ";
                kill -9 $(pidof dtnd);
        #       break;
         #  done
        (( c++ ))
done


